#include "CommunicationComponent.h"
#include "ui_CommunicationComponent.h"

CommunicationComponent::CommunicationComponent(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::CommunicationComponent)
{
    ui->setupUi(this);

    udpComm = new UdpComm(this);

    udpComm->start();

    char data[] = "1234456666";
    qDebug() << QByteArray(data, strlen(data)).toHex(' ');
    qDebug()<< "send length:" <<udpComm->sendData(QByteArray(data, strlen(data)));
}

CommunicationComponent::~CommunicationComponent()
{
    delete ui;
}

